home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 001375_daemon _Sun Jun 20 05:12:33 1993.msg < prev    next >
Internet Message Format  |  1994-01-24  |  2KB

  1. Received: by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  2.     id AA21009; Sun, 20 Jun 93 05:12:35 MET DST
  3. Errors-To: sanders@bsdi.com
  4. Return-Path: <sanders@bsdi.com>
  5. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  6.     id AA21005; Sun, 20 Jun 93 05:12:33 MET DST
  7. Errors-To: sanders@bsdi.com
  8. Received: from austin.BSDI.COM by dxmint.cern.ch (5.65/DEC-Ultrix/4.3)
  9.     id AA29083; Sun, 20 Jun 1993 05:34:50 +0200
  10. Received: from localhost by austin.BSDI.COM (5.67/1.37)
  11.     id AA01080; Sat, 19 Jun 93 22:34:47 -0500
  12. Message-Id: <9306200334.AA01080@austin.BSDI.COM>
  13. To: www-talk@nxoc01.cern.ch
  14. Subject: Re: launching executables through HTML files 
  15. In-Reply-To: Marc Andreessen's message of Sat, 19 Jun 93 21:50:04 CDT.
  16. Errors-To: sanders@bsdi.com
  17. Reply-To: sanders@bsdi.com
  18. Organization: Berkeley Software Design, Inc.
  19. Date: Sat, 19 Jun 1993 22:34:46 -0500
  20. From: Tony Sanders <sanders@bsdi.com>
  21.  
  22. > command: the browser would fork off this (more or less trusted)
  23. > application which could perform verification, testing of pathnames, or
  24. > whatever before giving the user a dialog box that would allow the
  25. > command to actually be launched.  Would this be a widely applauded
  26. > idea or should the browser just handle things itself (throw up the
  27. > command in a dialog box and say, "OK buddy, yes or no?")?
  28.  
  29. I think you should be able to configure the browser as to what MIME types
  30. it should handle and which get passed to an external program.  Something
  31. like the following (for X applications anyway):
  32.  
  33. XMosaic*contentTranslations: \
  34.             #override            \n\
  35.     text/html:    text_html()            \n\
  36.     text/*:    text_plain()            \n\
  37.     image/gif:    image_gif()            \n\
  38.     image/jpg:    image_jpg()            \n\
  39.     image/*:    exec(xv)            \n\
  40.     video/mpg:    exec(mpeg_play -loop)        \n\
  41.     audio/*:    exec(audio_play)        \n\
  42.     exec/*:    verify_exec() exec(exec_handler)\n\
  43.     */*:    unknown()
  44.  
  45. The #override means replace the translation table completely,
  46. otherwise do a merge.
  47.  
  48. Can anyone see that having a URL "exec:..." is better than simply
  49. groking "content-type: exec/*"?  I think using content-type is
  50. better because the "....:" part of a URL should specify how to
  51. retrive the data, not what to do with it.
  52.  
  53. --sanders